<?php

class Model_PureObject implements ArrayAccess {
    
    /****************************************************
     * Realize ArrayAccess Interface
     ****************************************************/
    public function offsetExists ($index) {
        return property_exists($this, $index);
    }
    
    public function offsetGet ($index) {
        return $this->$index;
    }
    
    public function offsetSet ($index, $newvalue) {
        $this->$index = $newvalue;
    }
    
    public function offsetUnset ($index) {
        unset($this->$index);
    }
}
?>